﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="ProductManagement.ascx.cs" Inherits="Product" %>
<link rel="stylesheet" type="text/css" href="../Style/style.css" />
<script language="javascript" type="text/javascript">
function confirmDelete()
{
    var ok=confirm("Bạn có thật sự muốn xóa không?");
    if(ok==true)
    {
        return true;
    }
    else
    {
        return false;
    }
}
</script>
<table border="0" cellpadding="0" cellspacing="0" style="width: 700px">
    <tr>
        <td style="width: 9px" align="left">
            <img src="Images/left1.png" /></td>
        <td background="Images/midle1.png" style="width: 685px" align="center" id="textmenu">
            Sản phẩm</td>
        <td style="width: 9px" align="right">
            <img src="Images/right1.png" /></td>
    </tr>
    <tr>
        <td id="bordermenu" align="center" bgcolor="#FAFAFA" colspan="3" style="height: 15px">
            <asp:Panel ID="Panel1" runat="server" Width="700px">
                <br />
                <asp:GridView ID="gvwProduct" runat="server" AllowPaging="True" AutoGenerateColumns="False"
                    BackColor="White" BorderColor="#c9c8c8" BorderStyle="Double" BorderWidth="3px"
                    CellPadding="4" GridLines="Horizontal" PageSize="3" Width="680px" DataKeyNames="ProductID" OnPageIndexChanging="gvwProduct_PageIndexChanging" OnSelectedIndexChanging="gvwProduct_SelectedIndexChanging" OnRowDeleting="gvwProduct_RowDeleting">
                    <RowStyle BackColor="WhiteSmoke" ForeColor="#A62800" />
                    <Columns>
                        <asp:BoundField DataField="ProductID" HeaderText="M&#227;" />
                        <asp:BoundField DataField="ProductName" HeaderText="T&#234;n sản phẩm" />
                        <asp:CommandField ShowSelectButton="True" SelectText="Chi tiết" />
                        <asp:CommandField DeleteImageUrl="~/Images/delete.gif" ShowDeleteButton="True" DeleteText="X&#243;a" />
                    </Columns>
                    <FooterStyle BackColor="White" ForeColor="#333333" />
                    <PagerStyle BackColor="#F6CAB8" ForeColor="White" HorizontalAlign="Center" />
                    <EmptyDataTemplate>
                        <asp:CheckBox ID="ckbDelete" runat="server" />
                    </EmptyDataTemplate>
                    <SelectedRowStyle BackColor="#F6CAB8" Font-Bold="True" ForeColor="White" />
                    <HeaderStyle BackColor="#A62800" BorderColor="#c9c8c8" Font-Bold="True" ForeColor="White" />
                </asp:GridView>
                <br />
                <table border="0" cellpadding="0" cellspacing="0" style="width: 700px">
                    <tr>
                        <td style="width: 150px; height: 30px;padding-right:5px;" align="right">
                            <asp:Label ID="Label1" runat="server" ForeColor="#A62800" Text="Tên sản phẩm:"></asp:Label></td>
                        <td style="width: 550px; height: 30px;" align="left">
                            <asp:TextBox ID="txtProductName" runat="server" BackColor="WhiteSmoke" BorderColor="#A62800"
                                ForeColor="#A62800"></asp:TextBox>
                            <asp:TextBox ID="txtProductID" runat="server" BackColor="WhiteSmoke" BorderColor="#A62800"
                                ForeColor="#A62800" Visible="False"></asp:TextBox></td>
                    </tr>
                    <tr>
                        <td style="width: 150px; height: 30px;padding-right:5px;" align="right">
                            <asp:Label ID="Label2" runat="server" ForeColor="#A62800" Text="Ảnh:"></asp:Label></td>
                        <td style="width: 550px; height: 30px;" align="left">
                            <asp:FileUpload ID="FileUpload1" runat="server" BackColor="WhiteSmoke" BorderColor="#A62800"
                                Font-Bold="False" ForeColor="#A62800" /></td>
                    </tr>
                    <tr>
                        <td style="width: 150px; height: 30px;padding-right:5px;" align="right">
                            <asp:Label ID="Label3" runat="server" ForeColor="#A62800" Text="Giá:"></asp:Label></td>
                        <td style="width: 550px; height: 30px;" align="left">
                            <asp:TextBox ID="txtProductPrice" runat="server" BackColor="WhiteSmoke" BorderColor="#A62800"
                                ForeColor="#A62800"></asp:TextBox></td>
                    </tr>
                    <tr>
                        <td align="right" style="width: 150px; height: 30px;padding-right:5px;">
                            <asp:Label ID="Label4" runat="server" ForeColor="#A62800" Text="Số lượng:"></asp:Label></td>
                        <td align="left" style="width: 550px; height: 30px">
                            <asp:TextBox ID="txtProductQuantity" runat="server" BackColor="WhiteSmoke" BorderColor="#A62800"
                                ForeColor="#A62800"></asp:TextBox></td>
                    </tr>
                    <tr>
                        <td align="right" style="width: 150px; height: 30px;padding-right:5px;">
                            <asp:Label ID="Label5" runat="server" ForeColor="#A62800" Text="Bảo hành:"></asp:Label></td>
                        <td align="left" style="width: 550px; height: 30px">
                            <asp:TextBox ID="txtProductWarranty" runat="server" BackColor="WhiteSmoke" BorderColor="#A62800"
                                ForeColor="#A62800"></asp:TextBox></td>
                    </tr>
                    <tr>
                        <td align="right" style="width: 150px; height: 30px;padding-right:5px;">
                            <asp:Label ID="Label6" runat="server" ForeColor="#A62800" Text="Loại sản phẩm:"></asp:Label></td>
                        <td align="left" style="width: 550px; height: 30px">
                            <asp:DropDownList ID="ddlProductType" runat="server" BackColor="WhiteSmoke" ForeColor="#A62800">
                            </asp:DropDownList></td>
                    </tr>
                    <tr>
                        <td align="right" style="width: 150px; height: 30px;padding-right:5px;">
                            <asp:Label ID="Label7" runat="server" ForeColor="#A62800" Text="Mô tả:"></asp:Label></td>
                        <td align="left" style="width: 550px; height: 30px">
                            <asp:TextBox ID="txaProductDetail" runat="server" BackColor="WhiteSmoke" BorderColor="#A62800"
                                ForeColor="#A62800" Height="156px" TextMode="MultiLine" Width="505px"></asp:TextBox></td>
                    </tr>
                    <tr>
                        <td style="width: 150px; height: 30px">
                        </td>
                        <td align="left" style="width: 550px; height: 30px">
                            <asp:Button ID="btnUpdate" runat="server" BackColor="WhiteSmoke" BorderColor="#A62800"
                                Font-Bold="True" ForeColor="#A62800" OnClick="btnUpdate_Click" Text="Cập nhật" />&nbsp;
                            <asp:Button ID="btnAdd" runat="server" BackColor="WhiteSmoke" BorderColor="#A62800"
                                Font-Bold="True" ForeColor="#A62800" OnClick="btnAdd_Click" Text="Thêm" />&nbsp;
                            <asp:Button ID="btnEdit" runat="server" BackColor="WhiteSmoke" BorderColor="#A62800"
                                Font-Bold="True" ForeColor="#A62800" OnClick="btnEdit_Click" Text="Sửa" />&nbsp;
                            <asp:Button ID="btnCancel" runat="server" BackColor="WhiteSmoke" BorderColor="#A62800"
                                Font-Bold="True" ForeColor="#A62800" OnClick="btnCancel_Click" Text="Thoát" />
                            </td>
                    </tr>
                </table>
            </asp:Panel>
            </td>
    </tr>
</table>
